package com.sondertara.joya.core.po;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Timestamp;

@Entity
@Table(name = "APP_DU_FOR_CAP")
@Data
public class AppDuForCapPo {
    /**
     * 部署单元表主键id
     */
    @Id
    @Column(name = "ID", unique = true, nullable = false, precision = 18, scale = 0)
    private Long id;
    /**
     * 应用系统名称
     */
    @Column(name = "APP_NAME")
    private String appName;
    /**
     * 部署单元名称
     */
    @Column(name = "DU_NAME")
    private String duName;
    /**
     * 部署单元状态 Y:运行中  N:未运行
     */
    @Column(name = "DU_STATUS")
    private String duStatus;
    /**
     * 	资源池名称
     */
    @Column(name = "POOL_NAME")
    private String poolName;
    /**
     * 数据中心ID 5001：武汉模拟演练数据中心
     */
    @Column(name = "DATACENTER_ID")
    private Integer datacenterId;
    /**
     * 资源池是否包含容量估算 Y:包含 N：不包含
     */
    @Column(name = "IS_RES_POOL")
    private String isResPool;
    /**
     * 应用系统是否包含容量估算  Y:包含 N：不包含
     */
    @Column(name = "IS_APP_COMP")
    private String isAppComp;
    /**
     * 是否联机 Y:联机 N：未联机
     */
    @Column(name = "IS_CONNECT")
    private String isConnect;
    /**
     * 部署平台
     */
    @Column(name = "PLATFORM_TYPE_CODE")
    private String platformTypeCode;
    /**
     * 部署单元功能类型
     */
    @Column(name = "DU_FUN_TYPE")
    private String duFunType;
    /**
     * 部署服务器配置
     */
    @Column(name = "DU_SERVER_CONFIG")
    private String duServerConfig;
    /**
     * 部署服务器数量
     */
    @Column(name = "DU_SERVER_NUM")
    private Integer duServerNum;
    /**
     * 业务量参照指标
     */
    @Column(name = "PORTFOLIO_INDEX")
    private String portfolioIndex;
    /**
     * 业务量参照指标值
     */
    @Column(name = "PORTFOLIO_INDEX_VALUE")
    private Integer portfolioIndexValue;
    /**
     * 业务量参照指标值日期
     */
    @Column(name = "PORTFOLIO_VALUE_DATA")
    private String portfolioValueData;
    /**
     * CPU使用率%
     */
    @Column(name = "CPU_USE_RATE")
    private Double cpuUseRate;
    /**
     * 内存使用率%
     */
    @Column(name = "MEM_USE_RATE")
    private Double memUseRate;
    /**
     * 预期业务量指标值
     */
    @Column(name = "EXPECT_BUSI_INDEX_VALUE")
    private Integer expectBusiIndexValue;
    /**
     * 预期业务量目标值日期
     */
    @Column(name = "EXPECT_BUSI_TARGET_DATA")
    private String expectBusiTargetData;
    /**
     * 容量调整建议(扩容/缩容/保持现状)
     */
    @Column(name = "CAPACITY_RESULT")
    private String capacityResult;
    /**
     * 扩容缩容服务器数量
     */
    @Column(name = "CAPACITY_SER_NUM")
    private Integer capacitySerNum;
    /**
     * 是否已经进行计算
     */
    @Column(name = "IS_ACTIVE")
    private String isActive;
    @Column(name = "UPDATE_TIME")
    private Timestamp updateTime;
    /**
     * 是否有历史数据  填 Y 或 N 。可用于回顾历史数据，查看修改的字段。
     */
    @Column(name = "HAS_HISTORY")
    private String hasHistory;
    /**
     * 是否是历史修改的数据  填 Y 或 N 。可用于回顾历史数据，查看修改的字段。
     */
    @Column(name = "IS_HISTORY")
    private String isHistory;

    /**
     * 应用系统简称
     */
    @Column(name = "CNAME")
    private String cname;
    /**
     * 系统级别
     */
    @Column(name = "APP_LEVEL_CODE")
    private String appLevelCode;

    @Column(name="OP_DANWEI")
    private String opDanwei ;

    @Column(name = "OP_TUANDUI")
    private String  opTuandui;

    @Column(name = "OP_QUNZU")
    private String  opQunzu;

    @Column(name = "OP_MANAGER_A")
    private String  opManagerA;

    @Column(name = "OP_MANAGER_B")
    private String opManagerB ;

    @Column(name = "APP_ID")
    private Long appId ;
}
